﻿using System;
using EmailJabber.Logic.Commands.Base;
using EmailJabber.Logic.Logic.BusinessLogic;

namespace EmailJabber.Logic.Commands
{
    public class SwitchAutoUpdatesCommand:CommandBase
    {
        protected override string GetDecription()
        {
            return "switch auto messages on mail recive";
        }

        protected override Guid GetId()
        {
            return new Guid("249F9A1B-72FE-400B-BA84-ACD257B0DE89");
        }

        protected override void ExecuteSafe(MessageIM comnd)
        {
        	BL.Instance.Send(MessageIM.GetReply(string.Format("Done! Current state: {0}", BL.Instance.SwitchAutoUpdates()),comnd));
        }
    }
}